/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.entity;

import java.io.Serializable;
import java.util.Calendar;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author israel
 */
@Entity
@SequenceGenerator(name="deletes_gen", sequenceName="deletes_gen", initialValue = 1, allocationSize = 1)
public class Deletes implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="deletes_gen")
    private Long id;

    @Column(length = 25, name = "target_table")
    private String targetTable;

    @Column(name = "hash_id")
    private Long hashID;

    @Column(name="ocurred_date")
    @Temporal(TemporalType.TIMESTAMP)
    private Calendar occurredDate;
    
    @Column(name="serial_number")
    private Long serialNumber;

    public Deletes() {
    }

    public Deletes(String targetTable, Long hashID, Calendar occurredDate, Long serialNumber) {
        this.id = id;
        this.targetTable = targetTable;
        this.hashID = hashID;
        this.occurredDate = occurredDate;
        this.serialNumber = serialNumber;
    }
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHashID() {
        return hashID;
    }

    public void setHashID(Long hashID) {
        this.hashID = hashID;
    }

    public Calendar getOccurredDate() {
        return occurredDate;
    }

    public void setOccurredDate(Calendar occurredDate) {
        this.occurredDate = occurredDate;
    }

    public String getTargetTable() {
        return targetTable;
    }

    public void setTargetTable(String targetTable) {
        this.targetTable = targetTable;
    }

    public Long getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(Long serialNumber) {
        this.serialNumber = serialNumber;
    }
    
}
